<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>/public/assets/css/h5/bottom.css">

<!--吸底导航-->
<div class="weui_tabbar weui_tabbar_bottom" >
    <a href="<?php echo base_url()?>" class="weui_tabbar_item <?php echo $this->router->class == 'index' ? 'weui_bar_item_on' :''?>">
        <div class="weui_tabbar_icon">
            <i class="fa fa-home"></i>
        </div>
        <p class="weui_tabbar_label">首页</p>
    </a>
    <a href="<?php echo base_url()?><?php echo $this->_is_teacher ? 't':''?>courserecord/index" class="weui_tabbar_item <?php echo $this->router->class == 'courserecord' ? 'weui_bar_item_on' :''?>">
        <div class="weui_tabbar_icon">
            <i class="fa  fa-pencil-square-o"></i>
        </div>
        <p class="weui_tabbar_label">约课记录</p>
    </a>
    <a href="<?php echo base_url()?>service" class="weui_tabbar_item <?php echo $this->router->class == 'service' ? 'weui_bar_item_on' :''?> ">
        <div class="weui_tabbar_icon">
            <i class="fa fa-user"></i>
        </div>
        <p class="weui_tabbar_label">服务中心</p>
    </a>
    
</div>

<script type="text/javascript">
/*
    $(document).ready(function(){
        $(".weui_tabbar_bottom a").click(function(){
            var path = $(".weui_tabbar_bottom a");
            path.not($(this).addClass("weui_bar_item_on")).removeClass("weui_bar_item_on");
        });
    });
*/
</script>